package com.diandian.backend.kuaishou.life.exchange.dto;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;
import java.util.Date;

public class KuaishouLifeTokenPageParamDTO implements Serializable {

	private Integer pageNum;
	private Integer pageSize;
	private String userIdEql;
	private String userIdLike;
	private String merchantIdEql;
	private String merchantIdLike;
	private String appKeyEql;
	private String appKeyLike;
	private String sourceTokenDataEql;
	private String sourceTokenDataLike;
	private String accessTokenEql;
	private String accessTokenLike;
	private String refreshTokenEql;
	private String refreshTokenLike;
	private String openIdEql;
	private String openIdLike;
	private Long expiresIn;
	private Date expiresDateBefore;
	private Date expiresDateAfter;
	private String scopesEql;
	private String scopesLike;
	private Date createTimeBefore;
	private Date createTimeAfter;
	private Integer del;

	public void check(){
		if(this.pageNum == null || this.pageNum < 1 || this.pageSize == null || this.pageSize < 1){
			throw new DefaultException("分页参数不合法");
		}
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getUserIdEql() {
		return userIdEql;
	}
	public void setUserIdEql(String userIdEql) {
		this.userIdEql = userIdEql;
	}
	public String getUserIdLike() {
		return userIdLike;
	}
	public void setUserIdLike(String userIdLike) {
		this.userIdLike = userIdLike;
	}
	public String getMerchantIdEql() {
		return merchantIdEql;
	}
	public void setMerchantIdEql(String merchantIdEql) {
		this.merchantIdEql = merchantIdEql;
	}
	public String getMerchantIdLike() {
		return merchantIdLike;
	}
	public void setMerchantIdLike(String merchantIdLike) {
		this.merchantIdLike = merchantIdLike;
	}
	public String getAppKeyEql() {
		return appKeyEql;
	}
	public void setAppKeyEql(String appKeyEql) {
		this.appKeyEql = appKeyEql;
	}
	public String getAppKeyLike() {
		return appKeyLike;
	}
	public void setAppKeyLike(String appKeyLike) {
		this.appKeyLike = appKeyLike;
	}
	public String getSourceTokenDataEql() {
		return sourceTokenDataEql;
	}
	public void setSourceTokenDataEql(String sourceTokenDataEql) {
		this.sourceTokenDataEql = sourceTokenDataEql;
	}
	public String getSourceTokenDataLike() {
		return sourceTokenDataLike;
	}
	public void setSourceTokenDataLike(String sourceTokenDataLike) {
		this.sourceTokenDataLike = sourceTokenDataLike;
	}
	public String getAccessTokenEql() {
		return accessTokenEql;
	}
	public void setAccessTokenEql(String accessTokenEql) {
		this.accessTokenEql = accessTokenEql;
	}
	public String getAccessTokenLike() {
		return accessTokenLike;
	}
	public void setAccessTokenLike(String accessTokenLike) {
		this.accessTokenLike = accessTokenLike;
	}
	public String getRefreshTokenEql() {
		return refreshTokenEql;
	}
	public void setRefreshTokenEql(String refreshTokenEql) {
		this.refreshTokenEql = refreshTokenEql;
	}
	public String getRefreshTokenLike() {
		return refreshTokenLike;
	}
	public void setRefreshTokenLike(String refreshTokenLike) {
		this.refreshTokenLike = refreshTokenLike;
	}
	public String getOpenIdEql() {
		return openIdEql;
	}
	public void setOpenIdEql(String openIdEql) {
		this.openIdEql = openIdEql;
	}
	public String getOpenIdLike() {
		return openIdLike;
	}
	public void setOpenIdLike(String openIdLike) {
		this.openIdLike = openIdLike;
	}
	public Long getExpiresIn() {
		return expiresIn;
	}
	public void setExpiresIn(Long expiresIn) {
		this.expiresIn = expiresIn;
	}
	public Date getExpiresDateBefore() {
		return expiresDateBefore;
	}
	public void setExpiresDateBefore(Date expiresDateBefore) {
		this.expiresDateBefore = expiresDateBefore;
	}
	public Date getExpiresDateAfter() {
		return expiresDateAfter;
	}
	public void setExpiresDateAfter(Date expiresDateAfter) {
		this.expiresDateAfter = expiresDateAfter;
	}
	public String getScopesEql() {
		return scopesEql;
	}
	public void setScopesEql(String scopesEql) {
		this.scopesEql = scopesEql;
	}
	public String getScopesLike() {
		return scopesLike;
	}
	public void setScopesLike(String scopesLike) {
		this.scopesLike = scopesLike;
	}
	public Date getCreateTimeBefore() {
		return createTimeBefore;
	}
	public void setCreateTimeBefore(Date createTimeBefore) {
		this.createTimeBefore = createTimeBefore;
	}
	public Date getCreateTimeAfter() {
		return createTimeAfter;
	}
	public void setCreateTimeAfter(Date createTimeAfter) {
		this.createTimeAfter = createTimeAfter;
	}
	public Integer getDel() {
		return del;
	}
	public void setDel(Integer del) {
		this.del = del;
	}
}
